package com.lcredu.proxy2;


/**
 * @author 黎长容
 * @date 2025-07-15 12:10
 */
public class MyTest {
    public static void main(String[] args) {
        Vehicle vehicle = new Ship();

        VehicleProxy vehicleProxy = new VehicleProxy(vehicle);

        Vehicle proxy = vehicleProxy.getProxy();

        proxy.fly(1000);

        System.out.println("ok...");
    }
}
